import http from '@/http'


export const getIndexApi = (parm:any) => {
	return http.post('/api/index', parm)
}

export const getDetailApi = (parm:any) => {
	return http.get('/api/showGroupBuy?g_no=' + parm)
}

//结束团购
export const overGroupBuyApi = (parm:any) => {
	return http.post('api/groupbuy/overGroupBuy' ,parm)
}

//删除团购
export const delGroupBuyApi = (parm:any) => {
	return http.post('api/groupbuy/delGroupBuy' ,parm)
}